package cn.xuchunh.campusbbs.ui;

import cn.xuchunh.campusbbs.R;
import cn.xuchunh.campusbbs.base.TestFragment;
import cn.xuchunh.campusbbs.ui.fragments.CommunityFragment;
import cn.xuchunh.campusbbs.ui.fragments.DiscoverFragment;
import cn.xuchunh.campusbbs.ui.fragments.HomePageFragment;
import cn.xuchunh.campusbbs.ui.fragments.MessagesFragment;
import cn.xuchunh.campusbbs.ui.fragments.PersonFragment;

/**
 * Created by XuChunH on 2015/9/11.
 */
public enum MainNavigationTab {
    HOMEPAGE(
            R.string.main_navigation_title_homepage,
            R.drawable.main_navigation_homepage,
            HomePageFragment.class
    ),
    COMMUNITY(
            R.string.main_navigation_title_forum,
            R.drawable.main_navigation_forum,
            CommunityFragment.class
    ),
    MESSAGE(
            R.string.main_navigation_title_message,
            R.drawable.main_navigation_message,
            MessagesFragment.class
    ),
    DISCOVER(
            R.string.main_navigation_title_discover,
            R.drawable.main_navigation_discover,
            DiscoverFragment.class
    ),
    PERSON(
            R.string.main_navigation_title_person,
            R.drawable.main_navigation_person,
            PersonFragment.class
    );

    private int titleRes;
    private int iconRes;
    private Class<?> clz;

    MainNavigationTab(int titleRes, int iconRes, Class<?> clz) {
        this.titleRes = titleRes;
        this.iconRes = iconRes;
        this.clz = clz;
    }

    public int getTitleRes() {
        return titleRes;
    }

    public void setTitleRes(int titleRes) {
        this.titleRes = titleRes;
    }

    public int getIconRes() {
        return iconRes;
    }

    public void setIconRes(int iconRes) {
        this.iconRes = iconRes;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
